//
//  CDProducts.h
//  freeLance
//
//  Created by s.zalozniy on 4/13/13.
//  Copyright (c) 2013 Mozi Development. All rights reserved.
//

#import <CoreData/CoreData.h>

#import "Products.h"

@class CDCollections, CDImages;

@interface CDProducts : NSManagedObject

@property (nonatomic, retain) NSNumber * collection_id;
@property (nonatomic, retain) NSString * description_;
@property (nonatomic, retain) NSNumber * ident;
@property (nonatomic, retain) NSNumber * isSynchronized;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSDecimalNumber * price;
@property (nonatomic, retain) NSString * url;
@property (nonatomic, retain) CDCollections *collection;
@property (nonatomic, retain) NSSet *images;

+(CDProducts *) productWithProductInfo:(Products *)productInfo inContext:(NSManagedObjectContext *)context;
-(void) updateWithProductInfo:(Products *)productInfo inContext:(NSManagedObjectContext *)context;

@end

@interface CDProducts (CoreDataGeneratedAccessors)

- (void)addImagesObject:(CDImages *)value;
- (void)removeImagesObject:(CDImages *)value;
- (void)addImages:(NSSet *)values;
- (void)removeImages:(NSSet *)values;

@end
